home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / mxlibs / sblib / sbdsp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-22  |  1.5 KB  |  52 lines

  1. #ifndef SB_DSP_H
  2. #define SB_DSP_H
  3.  
  4. #include "soundca.h"
  5. #include "structur.h"
  6. #include "dsp8.h"
  7. #include "dma8cnt.h"
  8. #include "sbirq.h"
  9.  
  10.  
  11. class SB_DSP : public SOUNDCARD_DSP
  12. {
  13.    public:
  14.           SB_DSP( void );
  15.           virtual ~SB_DSP( void );
  16.  
  17.           virtual stc_CARD_INFO * GetCardInfo( void );
  18.           virtual CARD_STATUS GetCurrentStatus( void );
  19.           virtual ERROR InitCard( void );
  20.           virtual ERROR Set8BitsDma( unsigned theDma );
  21.           virtual ERROR Set16BitsDma( unsigned theDma );
  22.           virtual ERROR SetIOPort( unsigned theIOPort );
  23.           virtual ERROR SetIrq( unsigned theIRQ );
  24.           virtual ERROR SetOutputBuffer( char *outBufPTR, unsigned length );
  25.           virtual ERROR SetOutputRawHandle( int handle );
  26.           virtual ERROR SetOutputWaveHandle( int handle );
  27.           virtual ERROR SetOutputVocHandle( int handle );
  28.           virtual ERROR SetSamplingRate( unsigned theSamplingRate );
  29.           virtual void  SetUserFlag( unsigned *flag );
  30.           virtual ERROR Start( void );
  31.           virtual ERROR Stop( void );
  32.  
  33.  
  34.    protected:
  35.              int FindSmpRate( int handle,unsigned *smpRate,            \
  36.                               unsigned char *pack,unsigned char *mode );
  37.  
  38.  
  39.              unsigned valid8BitsDmaChanel[3], validIOPort[6];
  40.              unsigned validIrq[4];
  41.              unsigned maxDma,maxIO, maxIrq;
  42.              DSP_CONTROL *sb8PTR;
  43.              DMA_8_BITS  *sb8DmaPTR;
  44.              SB_IRQ      *sb8IrqPTR;
  45.  
  46.  
  47.  
  48. };
  49.  
  50.  
  51.  
  52. #endif